Changing the Default Website Home Page
One
of the first things you’ll probably want to do with your new website is
change the home page. To do that, you need to create a new HTML (or
other web content) file in the wwwroot folder and give the file one of the following names:
default.htm
default.asp
index.htm
index.html
See “Setting the Default
Content Page,” to learn more about these special filenames. For example,
here’s some bare-bones HTML code that I’ve put in a file named default.htm:
<html>
<head>
<title>Home Page</title>
</head>
<body>
<div style="text-align: center;
font-size: 24pt;
font-family: Verdana;
color: Navy">
Welcome to Our Website!
</div>
</body>
</html>
Figure 4 shows default.htm added to the Default Web Site in IIS Manager, and Figure 5 shows the site’s new home page in a web browser.